from typing import List
from pydantic import Field, BaseModel


class Search(BaseModel):
    query: dict = Field()


class Q(BaseModel):
    must: list = Field(..., title='相关性搜索')


class F(BaseModel):
    filter_: list = Field(..., title='过滤搜索')


class HighLight(BaseModel):
    highlight: dict = Field({})


class Sort(BaseModel):
    sort: List = Field(...)


class Source(BaseModel):
    """返回字段"""
    Source: List[str] = Field(..., title='')
